Repository navigation
Conversation
Picks up AI coding agent detection in the User-Agent (OctopusDeploy/api-client.ts#294). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4ijpGHFpAqBBMhn5WKUq2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
api-client.ts#294, released in 3.11.7, adds AI coding agent detection to the User-Agent. Bumping here means requests from the MCP server identify the agent driving them.
Results
When an agent is detected, the User-Agent gains an
(ai-agent=<Name>)comment at the very end:The existing prefix is unchanged, so the server's
ts-octopusdeploy octopus-mcp-serverchecks (the local MCP disabled setting and MCP usage telemetry) keep working. The lockfile also picks up api-client's ownadm-zip0.6.1 andaxiosfloor bump.Testing
npm run buildandnpm run lintpass, and all unit tests pass. The 11 failing tests are the integration tests that need a live Octopus instance, and they fail the same way onmain.Follow-up
The client now also accepts an
aiAgentoption. Passing the MCPclientInfo.namefrom theinitializehandshake would identify the agent even when it doesn't export environment variables. That's left for a separate PR.Generated by Claude Code